import Vue from 'vue'

Vue.filter('sublice', function (value,length) {
  length = length || 10;
  if(value.length >length){
    return value.slice(0,length)+'...';
  }
  return value;
})
